<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix='locale' uri="http://lovexftt.appspot.com/tag/locale" %> 


<html>
<head>
<title><fmt:message key="colas" /></title>

<link type="text/css" rel="stylesheet" media="screen" href="/css/login.css">
<link href="/css/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"></script>

<script>
   if(window.dialogArguments) {
    window.returnValue="SF";	   
    self.close();
   }
</script>

</head>
<body>
 <div id="page">
      <div class="clearfix" id="content">
        <div id="main">     

<c:if test="${not empty ERROR_MSG}">
    <p class="errormsg"><fmt:message key="${ERROR_MSG}"/></p>
</c:if>
<c:if test="${not empty VALIDATION_ERROR}">
<c:forEach items="${VALIDATION_ERROR}" var = "error_msg">
<p class="filed_errormsg">${error_msg}</p>
</c:forEach>
</c:if>


<div id="wrap">
  <div class="passport">
    <h1 class="tit_1"><img alt="<fmt:message key="login" />" title="<fmt:message key="login" />" src="/images/tit_reg.gif"><fmt:message key="login" /><locale:locale/></h1>
    <div class="login">

      <div id="tagContent">
        <div id="tagContent0" class="tagContent selectTag">

          <form action="/login.tt" method="post" id="loginForm">            <table cellspacing="0" cellpadding="0" border="0" class="table_1">
              <colgroup><col width="60"><col></colgroup>
              <tbody><tr>
                <th><fmt:message key="userid" /></th>
                <td>
                  <input type="text" value="" tabindex="1" name="user.userId" id="userId" class="input_1 required">
                </td>
              </tr>
              <tr>
                <th><fmt:message key="password" /></th>
                <td>
                  <input type="password" value="" tabindex="2" name="user.password" id="password" class="input_1"></td>
              </tr>
			  <!--
              <tr>
                <th>&nbsp;</th>
                <td>
                  <input type="checkbox" value="1" tabindex="3" name="remember_me" id="auto">
                  <label for="auto">下次自动登录</label>
                  <a href="/users/forget">忘记密码？</a>
                </td>
              </tr>
			  -->
              <tr>
                <th>&nbsp;</th>
                <td><input type="submit" tabindex="4" class="btn_1 submit" value="<fmt:message key="login" />" id="loginBtn" name="loginBtn">
		<input type="button" tabindex="5" class="btn_1 submit" value="<fmt:message key="register" />" id="button" name="regBtn" onclick="window.location='/register.jsp'" ></td>
              </tr>
            </tbody></table>
          </form>
        </div>

      </div>
      
    </div>

  </div>
</div>

        </div>
        

      </div>
      

    </div>






<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.loadmask.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>

<script type="text/javascript">
$().ready(function() {
	validator($("#loginForm"));
	
});
</script>
</body>
</html>
